<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>显示信息</title>
</head>
<body>
<div style="margin-top:50px;">
  	<table border="1" width="90%" align="center">
  	<tr bgcolor="#66ccff"><td colspan="10" align="center"><font size="35">书籍信息</font></td></tr>
  	<tr bgcolor="#66ccff">
  	<td align="center">编号</td>
  	<td align="center">名称</td>
  	<td align="center">作者</td>
  	<td align="center">出版社</td>
  	<td align="center">出版日期</td>
  	<td align="center">页数</td>
 	<td align="center">定价</td>
  	<td align="center">摘要</td>
  	
  	
  	<td colspan="2" align="center">操作</td>
  	</tr>
  	<!-- 如果加了var=“person"需要使用# -->
   <s:iterator value="list">  
            <tr>  
            <td align="center"><s:property value="id"/></td>
            <td align="center"><s:property value="name"/></td>  
            <td align="center"><s:property value="author"/></td>
            <td align="center"><s:property value="publish"/></td>   
            <!-- 为了格式化前台格式为yyyyMMdd,将标签换为s:date报错javaClassNotFound,将标签换为s:datetextfield时，报错stacktrace问题 -->
            <!-- 哪位读者知道如何格式为yyyyMMdd的话，望赐教！ -->    
          <td align="center"><s:property value="publishdate" /></td>
          
            <td align="center"><s:property value="page"/></td>
            <td align="center"><s:property value="price"/></td>       
            <td align="center"><s:property value="content"/></td>       
            <td align="center">
            <a href="update.jsp?id=<s:property value='id'/>&name=<s:property value='name'/>&author=<s:property value='author'/>&publish=<s:property value='publish'/>&publishdate=<s:property value='publishdate'/>&page=<s:property value='page'/>&price=<s:property value='price'/>&content=<s:property value='content'/>">
            修改</a></td>
            <td align="center"><a href="bookAction!delete?id=<s:property value='id'/>">删除</a></td>
            </tr>  
        </s:iterator> 
        </table>
<hr>
<center>
<a href="bookAction!queryAll" method="post">重新载入信息</a>
<a href="add.jsp">添加信息</a>
</center>
</div>

</body>
</html>